package cn.lsc.feign;


import cn.lsc.doc.courseDoc;
import cn.lsc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;



@FeignClient(value = "service-search",fallbackFactory = SearchFallbackFactory.class)
public interface searchFeignService {

    @PostMapping("/search/searchcourse")
    JSONResult savechcourse(@RequestBody courseDoc courseDoc);


}
